﻿@model IEnumerable<Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole>


<h2>Roles</h2>
<p>
    @Html.ActionLink("Create New", "Create", "Role")
</p>
<table class="table">

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Role.Name)
        </td>
        
        <td>
            @Html.ActionLink("Add", "AddRole", new { userId=item.UserId, roleName=item.Role.Name })
        </td>
    </tr>
}

</table>
